package org.dpes.compare.compareManager;


public abstract class TaskManager {
	
	public long add(Task task){
		long id = addTask(task);
		task.setAcceptedTime();
		task.setID(id);
		return id;
	}
	
	public Task get(long id){
		return getTask(id);
	}
	
	public void remove(long id){
		removeTask(id);
	}

	
	
	abstract long addTask(Task task);
	
	abstract Task getTask(long id);
	
	abstract void removeTask(long id);
	
	public class OperationNotPermited extends Exception {
		private static final long serialVersionUID = 1684542427320723728L;
	}
}
